# _*_ coding:utf-8 _*_
# 开发人员：zhu
# 项目名称：testnew
# 开发时间：2022/3/616:01
# 开发工具：PyCharm
# 实例化client
from client.bcosclient import BcosClient
from client.bcoserror import BcosError

client = BcosClient()

# 调用查节点版本接口
res = client.getNodeVersion()
print("getClientVersion",res)

# 调用查节点块高接口
try:
    res = client.getBlockNumber()
    print("getBlockNumber",res)
except BcosError as e:
    print("bcos client error,",e.info())
